package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.entity.system.SysMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysMenuMapper {
    List<SysMenu> findAllMenus();

    Integer selectCountByPid(Long id);

    void deleteById(Long id);

    SysMenu findMenuById(Long id);

    void updateById(@Param("sysMenu") SysMenu sysMenu);

    void save(SysMenu sysMenu);

    List<SysMenu> findMyMenusByUserId(Long userId);
}
